package com.hxf.service.meal.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.hxf.dto.MealStyleDto;
import com.hxf.exception.DaoLevelException;
import com.hxf.exception.ServiceException;
import com.hxf.service.base.impl.BaseServiceImpl;
import com.hxf.service.meal.MealStyleService;

@Repository("mealStyleService")
public class MealStyleServiceImpl extends BaseServiceImpl implements MealStyleService {

	@Override
	public List<MealStyleDto> findByMealStyle() throws ServiceException {
		try {
			return super.daoFacade.getMealStyleDao().findByMealStyle();
		} catch (DaoLevelException e) {
			throw new ServiceException(e.getMessage(), e);
		} 
	}

}
